package com.ph.irp.base.measure.dao;

import java.util.List;

import com.ph.irp.model.PBaseMeasureunit;
import com.ph.irp.model.PBaseSettlement;

/**
 * 计量单位.
 * 
 * @author weide
 * @version 1.0 <br>
 * Copyright (C), 2009, SongYandong <br>
 * This program is protected by copyright laws. <br>
 * Program Name: MeasureUnitDAO.java<br>
 * Date:2009-11-2
 */
public interface PBaseMeasureUnitDAO {
	
	public void addMeasureUnit(PBaseMeasureunit model)throws Throwable;
	
	public PBaseMeasureunit getMeasureUnitById(int id)throws Throwable;
	
	public PBaseMeasureunit getDefaultMeasureUnitByGroupId(int id)throws Throwable;
	
	public List<PBaseMeasureunit> getMeasureUnitByGroupId(PBaseMeasureunit model)throws Throwable;
	
	public List<PBaseMeasureunit> getAllMeasureUnit()throws Throwable;
	
	public void updateMeasureUnit(PBaseMeasureunit model)throws Throwable;
	
	public void deleteMeasureUnit(int id) throws Throwable;
	
	public List<PBaseMeasureunit> getMeasureUnitByCode(String code)throws Throwable;
	
	public List<PBaseMeasureunit> getMeasureUnitByName(String name)throws Throwable;
	
	public List<PBaseMeasureunit> getMeasureUnitByNameAndCode(String measureUnitName,String measureUnitCode)throws Throwable;

	public PBaseMeasureunit  getMeasureUnitByUnitName(String name)throws Throwable;
	
	public List<PBaseMeasureunit> dynamicQuery(PBaseMeasureunit model)throws Throwable;
	
	
	public PBaseMeasureunit getMeasureUnitForSellPrice(String name) throws Throwable;
}
